package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffSpaceOpenSceneDto
 * @使用场景
 */
@Data
public class BffSpaceOpenSceneDto implements Serializable {

    /**
     * 图标
     */
    @ApiModelProperty("图标")
    private String icon;

    /**
     * 场景标识
     */
    @ApiModelProperty("场景标识")
    private String sceneCode;

    /**
     * 场景名称
     */
    @ApiModelProperty("场景名称")
    private String sceneName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffSpaceOpenSceneDto that = (BffSpaceOpenSceneDto) o;
        return icon == that.icon && sceneCode == that.sceneCode && sceneName == that.sceneName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), icon, sceneCode, sceneName);
    }

}
